import Od from '@/views/od.vue';
import Home from '@/views/home.vue';
import Vue from 'vue';
import Router from 'vue-router';
import store from '../store';
import Point from '@/views/point.vue'
import Flow from '@/views/flow.vue'
import Cross from '@/views/cross.vue'

Vue.use(Router)

const router = new Router({
  mode: "history",
  base: '/XXDQ', // 外网控制黑白色系(HZ-ZYFXZL为黑色， HZ-ZYFX为白色系),内网默认为HZ-ZYFX
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/od',
      name: 'od',
      component: Od
    },
    {
      path: '/point',
      name: 'point',
      component: Point
    },
    {
      path: '/flow',
      name: 'flow',
      component: Flow
    },
    {
      path: '/cross',
      name: 'cross',
      component: Cross
    }
  ]
})

export default router

